<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/2
 * Time: 14:32
 */

namespace app\admin\validate;


use think\Validate;

class Category extends Validate
{
    protected $rule =   [
        'title'       => 'require',
        'type'        => 'require',
        'list_tpl'    => 'require',
        'article_tpl' => 'require',
    ];
    protected $message  =   [
        'title.require'       => '栏目名称不能为空',
        'type.require'        => '栏目类型不能为空',
        'list_tpl.require'    => '列表页模版不能为空',
        'article_tpl.require' => '文章页模版不能为空'
    ];
}